//
//  HomePageSearchResultModel.m
//  Taste
//
//  Created by 徐昊 on 16/9/23.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "HomePageSearchResultModel.h"
#import "HomePageSearchResultRes.h"
@implementation HomePageSearchResultModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"res"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            HomePageSearchResultRes *res = [HomePageSearchResultRes modelWithDic:dic];
            [array addObject:res];
        }
        _res = array;
    }
}
@end
